From: | Joseph Fenton |
Date: | 27 Sep 2001 at 18:04:33 |
Subject: | Re: Flashrom |
Mark Olsen wrote:
>
> The normal way of getting the speed of the chip is by doing
> busspeed*multiplier, in the 210MHz case it would be 60MHz*3.5
>
> So if it was overclocked from 160 to 210MHz, it should write the right
> speed(210) anyway. Various coders have in the past had difficulties
> calculating the correct value(early ADoomPPC, early ppc.library, early
> Quake ports, etc), so it's probably a bug like that.
I wrote ADoomPPC and it didn't have any trouble... ppc.library
did. The ppc.library often returned 0 for the cpu speed, so I
made two things to help that out as I made revisions to ADoomPPC:
the first was a switch to force the speed to any value the user
wanted; the second was to get the bus speed, then multiple by the
PLL multiplier. Between the two, I haven't had any more reports
of trouble with the cpu speed.
I know you said EARLY ADoomPPC, but it still wasn't my fault; I
shouldn't have had to add the two work-arounds. :^}